<h3 class="title-page">Danh sách phiếu gửi</h3>
<div class="search-form-o">
<?php $this->renderPartial('_search', array(
	'model' => $model,
)); ?>
</div><!-- search-form -->
<?php $this->widget('backend.widgets.iGridView', array(
	'id' => 'delivery-order-ticket-model-grid',
	'dataProvider' => $model->search(),
	//'filter' => $model,
	'columns' => array(
		'id',
		'code',
		array(
			'name'=>'customer_id',
			'value'=>'DeliveryCustomerModel::model()->findByPk($data->customer_id)->name'
		),
		'receive_address',
		array(
			'name'=>'office',
			'value'=>'OfficeModel::model()->findByPk($data->office)'
		),
		/*
		'street',
		'office',
		'address',
		'type_product',
		'payment',
		'weight',
		'service',
		'content',
		'money',
		'charge_pri',
		'charge_modify',
		'charge_up',
		'charge_oil',
		'charge_more',
		'vat',
		'total',
		*/
		array(
				'class'=>'webroot.widgets.iButtonColumn',
				'htmlOptions'=>array('width'=>'50'),
				'template'=>'{transfer}{update}{delete}',
				'buttons'=>array(
					'transfer'=>array(
						'label'=>'Cập nhật hành trình', 
						'icon'=>'icon-list-alt icon-blue',
						'url'=>'Yii::app()->createUrl("/delivery/deliveryOrderTicket/view", array("id"=>"$data->id", "ot"=>1))'
					)
				),
		),
	),
)); ?>